{temp('admin/head')}
<script src="{$adstyle}/js/art/artDialog.source.js?skin=opera"></script>
<script src="{$adstyle}/js/art/plugins/iframeTools.source.js"></script>
</head>
<body class="page-body">
		
		{temp('admin/left')}
			
			{temp('admin/top')}
			
			<!-- Basic Setup -->
			<div class="panel panel-default">
				<div class="panel-heading">
					<h3 class="panel-title">{$tit}</h3>
					<div class="panel-options">
						
						<a href="{$_url}/admin/?act=recruit&met=firm_xx{$gnpd}">
							<i class="fa-rotate-right"></i>
							刷新
						</a>
						
					</div>
				</div>
				<div class="panel-body">
					
					<script type="text/javascript">
					jQuery(document).ready(function($)
					{
						$("#example").dataTable({
							"oLanguage": {
								"sUrl":"{$adstyle}/js/datatables/js/zn.txt"
							},
							aLengthMenu: [
								[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]
							]
						});
					});
					</script>
					
					<div data-pattern="priority-columns" data-add-display-all-btn="false" data-add-focus-btn="false">
					
					<table id="example" class="table table-striped table-bordered" cellspacing="0" width="100%">
						<thead>
							<tr>
								<th>用户ID号</th>
								<th>用户名</th>
								<th>上次登录时间</th>
								<th>注册时间</th>
								<th>状态</th>
								<th>类型</th>
								<th>操作</th>
							</tr>
						</thead>
					
						<tbody class="middle-align">
							{if(@$rs)}
							{foreach($rs as $k=>$v)}
							<tr>
								<td>{$v['id']}</td>
								<td>{$v['name']}</td>
								<td>{code(echo date('Y-m-d H:i:s',$v['dltime']))}</td>
								<td>{code(echo date('Y-m-d H:i:s',$v['time']))}</td>
								<td>{if($v['zt'] == 1)}激活{elseif($v['zt'] == 2)}冻结{else}未激活{/if}</td>
								<td>{if($v['lx'] == 1)}vip{else}普通{/if}</td>
								<td>
									<button onclick="chakan({$v['id']})" class="btn btn-info btn-sm btn-icon icon-left">
										查看
									</button>
									<button onclick="xuanze({$v['id']})" class="btn btn-danger btn-sm btn-icon icon-left">
										充值
									</button>
								</td>
							</tr>
							{/foreach}	
							{/if}
						</tbody>
					</table>
					<script type="text/javascript">
						function xuanze(id){
							art.dialog.open('{$_url}/admin/?act=recruit&met=xuanze{$gnpd}&id='+id,{title:'',lock:true},false);
						}
					</script>
					</div>
					
				</div>
			</div>
			
			<script type="text/javascript">
				function chakan(id){//查看详细信息
					window.location.href='{$_url}/admin/?act=recruit&met=firm_look&id='+id+'{$gnpd}';
				}
			</script>
			
		{temp('admin/foot')}
		
	<!-- Imported styles on this page -->
	<link rel="stylesheet" href="{$adstyle}/js/datatables/dataTables.bootstrap.css">

	<!-- Bottom Scripts -->
	<script src="{$adstyle}/js/bootstrap.min.js"></script>
	<script src="{$adstyle}/js/TweenMax.min.js"></script>
	<script src="{$adstyle}/js/resizeable.js"></script>
	<script src="{$adstyle}/js/joinable.js"></script>
	<script src="{$adstyle}/js/xenon-api.js"></script>
	<script src="{$adstyle}/js/xenon-toggles.js"></script>
	<script src="{$adstyle}/js/datatables/js/jquery.dataTables.min.js"></script>

	<!-- Imported scripts on this page -->
	<script src="{$adstyle}/js/datatables/dataTables.bootstrap.js"></script>
	<script src="{$adstyle}/js/rwd-table/js/rwd-table.min.js"></script>

	<!-- JavaScripts initializations and stuff -->
	<script src="{$adstyle}/js/xenon-custom.js"></script>

</body>
</html>